require('./app.styl');

import {HashRouter} from 'react-keeper'
import PageIndex from 'pages/index';
import PageDbrwtx from 'pages/dbrwtx';
import PageDbrwtxedit from 'pages/dbrwtxedit';
import PageZlJdHome from 'pages/zlhome';
import PageAqHome from 'pages/aqhome';
import PageZlxcjlEdit from 'pages/zlxcjledit';
import PageZlysjlEdit from 'pages/zlysjledit';
import PageEngList from 'pages/englist';
import PageEngEdit from 'pages/engedit';
import PageZlzgtzsEdit from 'pages/zgtzsedit';
import PageZljbtgEdit from 'pages/zljbtgedit';
import PageAqxcjlEdit from 'pages/aqxcjledit';
import PageAqzgtzsEdit from 'pages/aqzgtzsedit';
import PageAqjbtgEdit from 'pages/aqjbtgedit';
import PageNbtzList from 'pages/nbtzlist';


import {Component} from "react";


if (__LOCAL__ && window.chrome && window.chrome.webstore) { // This is a Chrome only hack
  setInterval(function () {
    document.body.focus();
  }, 200);
}

class App extends Component {

  render() {
    return (
      <HashRouter>
        <div>
          <PageIndex.route/>
          <PageDbrwtx.route/>
          <PageDbrwtxedit.route/>
          <PageZlJdHome.route/>
          <PageAqHome.route/>
          <PageZlxcjlEdit.route/>
          <PageZlysjlEdit.route/>
          <PageZlzgtzsEdit.route/>
          <PageZljbtgEdit.route/>
          <PageEngList.route/>
          <PageEngEdit.route/>
          <PageAqxcjlEdit.route/>
          <PageAqzgtzsEdit.route/>
          <PageAqjbtgEdit.route/>
          <PageNbtzList.route/>
        </div>
      </HashRouter>
    );
  }
}

ReactDOM.render(<App/>, document.getElementById('App'));
